using Orchard;
using Orchard.ContentManagement;
using Orchard.Environment.Extensions;
using System.ComponentModel;

namespace Rework.CommerceHistory.Models {
    [OrchardFeature("Rework.CommercePayPal")]
    public class CommercePayPalSettingsPart : ContentPart<CommercePayPalSettingsPartRecord> {
        public string BusinessEmailAddress {
            get { return Record.BusinessEmailAddress; }
            set { Record.BusinessEmailAddress = value; }
        }
        public string MerchantId {
            get { return Record.MerchantId; }
            set { Record.MerchantId = value; }
        }
        public string PDTAuthenticationToken {
            get { return Record.PDTAuthenticationToken; }
            set { Record.PDTAuthenticationToken = value; }
        }
        public bool IsSandbox {
            get { return Record.IsSandbox; }
            set { Record.IsSandbox = value; }
        }
        [DefaultValue("USD")]
        public string Currency {
            get { return Record.Currency; }
            set { Record.Currency = value; }
        }
        [DefaultValue("LB")]        
        public string WeightUnit {
            get { return Record.WeightUnit; }
            set { Record.WeightUnit = value; }
        }

    }
}
